<div class="formContainer" >
	<?php $this->displayFormErrors();	?>
	<form  method="post" action="<?php echo $this->url(array('ctrl' => 'questions', 'act' => 'add'))?>" >
		<fieldset class="ui-widget ui-widget-content ui-corner-all">
			<legend class="ui-widget ui-widget-header ui-corner-all"><?php echo $this->escape($this->title);?></legend>
			<p>
				<label for="testId">Test</label>
				<select id="testId" name="testId" class="text ui-widget-content ui-corner-all" >
					<option value="-1" >--------------------------------</option>
					<?php
						if($this->tests):
							foreach ($this->tests as $test):
								?><option value="<?php echo $test->id;?>" ><?php echo $this->escape($test->name. ' -- '.$test->subject);?></option><?php
							endforeach;
						endif; 
					?>
				</select>
			</p>
			<p>
				<label for="desc">Question</label>
				<textarea id="_desc" name="_desc"   class="text ui-widget-content ui-corner-all" ></textarea>
			</p>
			<p>
				<input class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="submit" value="Add Question" />
			</p>
		</fieldset>
	</form>
</div>